package com.my.cd.proxy.candymachine;

import java.rmi.RemoteException;

/**
 * 主测试类
 */
public class MainTest {
    public static void main(String[] args) throws RemoteException {
        CandyMachine machine = new CandyMachine("local", 6);

        machine.printState();

        machine.insertCoin();
        machine.printState();

        machine.turnCrank();

        machine.printState();

        machine.insertCoin();
        machine.printState();

        machine.turnCrank();

        machine.printState();
    }
}
